<?php
defined('IN_SITE') or exit('Access Denied');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?=$SETTING['sitename']?> 后台管理面板</title>
<link rel="stylesheet" href="modules/frames/frames.css"/>
<link rel="stylesheet" href="misc/tree/tree.css"/>
<script type="text/javascript" src="misc/jquery.min.js"></script>
<script type="text/javascript" src="misc/tree/tree.js"></script>

<SCRIPT>
// 当前时间
function initArray(){for(i=0;i<initArray.arguments.length;i++)
this[i]=initArray.arguments[i];}var isnMonths=new initArray("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");var isnDays=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日");today=new Date();hrs=today.getHours();min=today.getMinutes();sec=today.getSeconds();clckh=""+((hrs>12)?hrs-12:hrs);
clckm=((min<10)?"0":"")+min;clcks=((sec<10)?"0":"")+sec;clck=(hrs>=12)?"下午":"上午";var stnr="";var ns="0123456789";var a="";
</SCRIPT>

<SCRIPT language=javascript>
// 当前时间
function getFullYear(d){
	yr=d.getYear();if(yr<1000)
	yr+=1900;return yr;
}
</SCRIPT>
</head>

<body style="background:#000;">
<div class="container">
  <div class="header">
    <!--// 网站导航 Start-->
    <ul class="admin_nav">
    	
    	<li class="home"><a title="查看网站" target="_blank" href="<?=SITE_URL?>"></a></li>
        <li><a href="<?=$MENU[99]['url']?>" target="right" onclick="get_menu(99, 'tree', 0)"><span>网站配置</span></a></li>
        <li><a href="<?=$MENU[4]['url']?>" target="right" onclick="get_menu(4, 'tree', 0)"><span>内容管理</span></a></li>
        <li><a href="javascript:get_menu(1294, 'tree', 0)"><span>商务引擎</span></a></li>
        <li><a href="javascript:get_menu(2, 'tree', 0)"><span>功能扩展</span></a></li>
        <li class="logout"><a title="退出登录" href="?module=member&action=logout"></a></li>
    </ul>
  </div>
  <!--//  网站内容区 -->
  <div class="current">
         <div class="left">
         欢迎 <strong style="color:red"><?=$_username?></strong> 登录后台管理系统V5： <script>document.write(isnDays[today.getDay()]+" "+isnMonths[today.getMonth()]+""+today.getDate()+"日 "
+getFullYear(today)+"年");</script>
		</div>
  
  
  <style type="text/css">
  #debug{ padding-right:10px;}
  #debug a{ text-decoration:none;}
  </style>
 
    <span class="right" id="debug">
    <a target="right" href="?module=system">系统配置</a> / 
    <a target="right" href="?module=log">操作日志</a> / 
    <a target="right" href="?module=cache">更新缓存</a>
    <!--<a target="right" href="?module=template&action=cache">更新模板缓存</a>-->
    </span>

  
  </div>
  <div class="pagebody">
    <div class="leftpage" id="left">
      <h3 class="t">
      	<span>控制面板</span>
        <a href="#"></a>
      </h3>
      
      <!--// 树形菜单-->
      <div id="tree_box" class="p_r">
          <div id="tree" class="tree p_a" style="top:10px;overflow:auto;overflow-x:hidden;"></div>
          <div id="tree_bg" class="p_a"></div>
          <div id="tree_click"  class="p_a"></div>
      </div>
      
    </div>
    <div class="rightpage">
      <iframe name="right" id="right" frameborder="0" src="<?php echo $iframe_url?>" style="height:100%;width:100%;z-index:111;background-color:#ffffff"></iframe>
      <!--<iframe name="right" id="right" frameborder="0" src="?module=system" style="height:100%;width:100%;z-index:111;background-color:#ffffff"></iframe>-->
    </div>
    
      <!--// 网站底部-->
      <div class="footer">Copyright(C):2007-<?php echo date('Y')?></div>
  </div>
</div>
</body>
</html>


<script language="JavaScript">
var cut_nums = 0;
if(!$.browser.msie) cut_nums = 10;
var screen_h = parseInt(document.documentElement.clientHeight)-95-parseInt(cut_nums);
$("#tree").css("height",screen_h-85);

var site_url = '<?=SITE_URL?>misc/tree/';
get_menu(4,'tree',0);

function window_auto_resize(){
	var window_page_width = document.body.scrollWidth-220;
    var window_page_height = document.documentElement.clientHeight-158;
    $("#right").height(window_page_height);
    $("#left").height(window_page_height+50);
}
window.onresize =function()
{
    window_auto_resize();
}
//window.onload = function(){
	window_auto_resize();
//};

function parent_file_list(obj)
{
	right.parent_file_list(obj);
}
</script>
